<h1>Institutions
<%= image_tag("spinner.gif",
	:align => "absmiddle",
	:border => 0,
	:id => "spinner",
	:style => "display: none;") %></h1>

<div id="filterBox">
Filters (
<a href="#" onClick="$('filterTable').show(); return false;">show</a>
|
<a href="#" onClick="$('filterTable').hide(); return false;">hide</a>
)



<div id="filterTable">
<form id="filter_form" name="filter_form" action="">

<hr>
<table>
<tr>
<th>MultifunC institution</th>
</tr>

<tr>
<td>
<%= select(:institution, :multifunc_institution, ['Yes', 'No'],  options ={:prompt => "(Show all)"}) %>
</td>
</tr>

</table>
</form>
</div>



</div>

<div id="resultSet">
<%= render :partial => 'institutions_list' %>
</div>

<%= observe_form 'filter_form',
:update => 'resultSet',
:before => "Element.show('spinner')",
:success => "Element.hide('spinner')",
:url => {:action => 'list'},
:with => "Form.serialize('filter_form')" %>

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
$('filterTable').hide();
//-->
</SCRIPT>

<p align="right"><%= link_to "Add new Institution", {:action => 'new'} %></p>

